import React from 'react';
import PDFConverter from '../components/PDFConverter';
import { Typography } from 'antd';
import styles from './shared.module.css';

const { Title } = Typography;

interface PDFConvertPageProps {
  setToolbar: (toolbar: React.ReactNode) => void;
}

const PDFConvertPage: React.FC<PDFConvertPageProps> = ({ setToolbar }) => {
  React.useEffect(() => {
    setToolbar(null);
    return () => setToolbar(null);
  }, [setToolbar]);

  return (
    <div className={styles.container}>
      <Title level={2} className={styles.pageTitle}>PDF 格式转换</Title>
      <div className={styles.content}>
        <PDFConverter />
      </div>
    </div>
  );
};

export default PDFConvertPage; 